package site.yunnong.common.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import site.yunnong.common.utils.PageUtils;
import site.yunnong.common.utils.Query;

import site.yunnong.common.dao.VideoCommentDao;
import site.yunnong.common.entity.VideoCommentEntity;
import site.yunnong.common.service.VideoCommentService;


@Service("videoCommentService")
public class VideoCommentServiceImpl extends ServiceImpl<VideoCommentDao, VideoCommentEntity> implements VideoCommentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<VideoCommentEntity> page = this.page(
                new Query<VideoCommentEntity>().getPage(params),
                new QueryWrapper<VideoCommentEntity>()
        );

        return new PageUtils(page);
    }

}